/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controleur;

import ia_project.GenerateurNom;
import java.util.Random;

/**
 *
 * @author Raphaël
 */
public class Esprit {

    private GenerateurNom geneNom = new GenerateurNom();
    private static int RAND_NUM = 101;
    private String nom;
    private int agressivite;
    private int negociation;
    private int humeur;
    private int patience;
    private SexeType sexe;

    public static enum SexeType {

        Male, Femelle
    };

    public Esprit() {
        Random rand = new Random();
        this.nom = geneNom.genererNom();
        this.sexe = (rand.nextInt(2) == 0) ? SexeType.Femelle : SexeType.Male;
        this.agressivite = rand.nextInt(RAND_NUM);
        this.negociation = rand.nextInt(RAND_NUM);
        this.humeur = rand.nextInt(RAND_NUM);
        this.patience = rand.nextInt(RAND_NUM);
    }

    public Esprit(String nom, SexeType sexe, int agressivite, int negociation, int humeur, int patience) {
        this.nom = nom;
        this.sexe = sexe;
        this.agressivite = agressivite;
        this.negociation = negociation;
        this.humeur = humeur;
        this.patience = patience;
    }

    public int getAgressivite() {
        return agressivite;
    }

    public int getHumeur() {
        return humeur;
    }

    public int getNegociation() {
        return negociation;
    }

    public String getNom() {
        return nom;
    }

    public int getPatience() {
        return patience;
    }

    public SexeType getSexe() {
        return sexe;
    }

    public void setAgressivite(int agressivite) {
        this.agressivite = agressivite;
    }

    public void setHumeur(int humeur) {
        this.humeur = humeur;
    }

    public void setNegociation(int negociation) {
        this.negociation = negociation;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public void setPatience(int patience) {
        this.patience = patience;
    }

    public void setSexe(SexeType sexe) {
        this.sexe = sexe;
    }

    public void afficheToutEsprit() {
        System.out.println("Aggressivité : " + getAgressivite());
        System.out.println("Humeur : " + getHumeur());
        System.out.println("Négociation : " + getNegociation());
        System.out.println("Nom : " + getNom());
        System.out.println("Patience : " + getPatience());
        System.out.println("Sexe : " + getSexe());
    }
}
